package com.xungou.goodtypeproperty.service.impl;

import com.xungou.core.mvc.AbstractService;
import com.xungou.core.mvc.IDao;
import com.xungou.goodtypeproperty.dao.IGoodTypeProperty;
import com.xungou.goodtypeproperty.pojo.GoodTypeProperty;
import com.xungou.goodtypeproperty.service.IGoodTypePropertyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service("goodTypePropertyService")
public class GoodTypePropertyServiceImpl extends AbstractService<GoodTypeProperty> implements IGoodTypePropertyService {
    @Resource  
    private IGoodTypeProperty iGoodTypeProperty;

    @Override
    protected IDao<GoodTypeProperty> getDao() {
        return iGoodTypeProperty;
    }

    public List<Map<String, Object>> getAllProperty(Map<String, String> params) {
        return iGoodTypeProperty.getAllProperty(params);
    }

    @Override
    public List<Map<String, Object>> getTypePropertyTree(Map<String, String> params) {
        return iGoodTypeProperty.getTypePropertyTree(params);
    }
}